package org.dtrd.modules.content.tags.entity.bean;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.content.tags.entity.po.DtrdExtEmsYwTags;

/**
 * <p>
 * 标签
 * </p>
 *
 * @author QR
 * @since 2022-03-15
 */
@Getter
@Setter
@ApiModel(value = "标签列表信息", description = "标签")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class TagsListInfo {

    private Integer tagId;

    @ApiModelProperty("标签名称")
    private String tagName;

    @ApiModelProperty("所属分类id")
    private Integer tagType;

    @ApiModelProperty("所属分类名称")
    private String tagTypeName;

    @ApiModelProperty("标签热度")
    private Integer tagHot;

    public TagsListInfo (DtrdExtEmsYwTags po) {
        tagId = po.getDataId();
        tagName = po.getTagName();
        tagType = po.getTagType();
        tagHot = po.getTagHot();
    }
}
